<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	template="/layout/page/sample/left-right-template.xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:a4j="http://www.sinosoft.com.cn/a4j"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<ui:param name="compId" value="#{commonContentViewBean.id}" />
	<ui:param name="treeViewBean"
		value="#{commonContentViewBean.allView[0]}" />
	<ui:param name="rightViewBean"
		value="#{commonContentViewBean.allView[1]}" />
	<ui:define name="compLeft">
		<h:form id="#{compId}_form">			
			<ui:decorate
				template="/layout/iteration/tree/sino-tree-single-template.xhtml">
				<ui:param name="compViewBean" value="#{treeViewBean}" />
				<ui:param name="compId" value="#{commonContentViewBean.id}_tree" />
				<ui:param name="compSelectedNodeUpdate"
					value="main-tabSet:#{commonContentViewBean.id}_rightMain_form" />
			</ui:decorate>
		</h:form>
	</ui:define>

	<ui:define name="compRight">
		<ui:decorate template="/layout/page/search/custom-search-template.xhtml">
			 
			<ui:param name="compId" value="#{commonContentViewBean.id}_rightMain" />
			<ui:param name="compTitle" value="权限信息" />
			
			<ui:define name="compButtons" >
				<p:commandButton 
					oncomplete="SinoPortal.View.createWin('identity-scene','identity-manage-add-type','#{compId}',{type:'createdir',displayName:'添加分类'});"
					title="添加分类" image="ui-icon-disk" value="添加分类">
				</p:commandButton>
				<p:commandButton 
					oncomplete="SinoPortal.View.createWin('identity-scene','identity-manage-add','#{compId}',{type:'createdir',displayName:'添加权限'});"
					title="添加权限" image="ui-icon-disk" value="添加权限">
				</p:commandButton> 
				<p:commandButton 
					title="修改" image="ui-icon-disk" value="修改">
				</p:commandButton>  
				<p:commandButton actionListener="#{codeSetManageAction.delAction}"
					onstart="if(confirm('确认要删除吗？')){return true;}else{return false;}"
					update="#{compId}_right_form"
					title="删除" image="ui-icon-disk" value="删除"> 
				</p:commandButton>
			</ui:define>
			
			<ui:define name="compContent" >
			
				<ui:decorate template="/layout/input/editable-template.xhtml">
			
					<!-- 第一行 -->
					<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
						<ui:param name="compBean1Id" value="identityId" />
						<ui:param name="compBean1Lable" value="分类编号 " />
						<ui:param name="compBean1Editable" value="false"/>
						
						<ui:define name="compBean1Content">
							<h:outputText id="#{compBean1Id}" value="#{rightViewBean.identityId}" />
						</ui:define>
						
						<ui:param name="compBean2Id" value="identityName" />
						<ui:param name="compBean2Lable" value="分类名称" />
						<ui:param name="compBean2Editable" value="false"/>
						
						<ui:define name="compBean2Content">
							<h:outputText id="#{compBean2Id}" value="#{rightViewBean.identityName}" />
						</ui:define>
						
					</ui:decorate>
					
					<!-- 第二行 -->
					<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
					
						<ui:param name="compBean1Id" value="parentName" />
						<ui:param name="compBean1Lable" value="父分类" />
						<ui:param name="compBean1Editable" value="false"/>
						
						<ui:define name="compBean1Content">
							<h:outputText id="#{compBean1Id}" value="#{rightViewBean.parent.identityName}" />
						</ui:define>
						
					</ui:decorate>
					
					<!-- 第三行 -->
					<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
					
						<ui:param name="compType" value="single" />
						<ui:param name="compBean1Id" value="description" />
						<ui:param name="compBean1Lable" value="分类详细信息" />
						<ui:param name="compBean1Editable" value="false"/>
						
						<ui:define name="compBean1Content">
							<h:outputText id="#{compBean1Id}" value="#{rightViewBean.description}" />
						</ui:define>
						
					</ui:decorate>
				
				</ui:decorate>
				
				
				<ui:decorate template="/layout/input/editable-template.xhtml">
			
					<!-- 第一行 -->
					<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
						<ui:param name="compBean1Id" value="identityId" />
						<ui:param name="compBean1Lable" value="权限编号 " />
						<ui:param name="compBean1Editable" value="false"/>
						
						<ui:define name="compBean1Content">
							<h:outputText id="#{compBean1Id}" value="#{rightViewBean.identityId}" />
						</ui:define>
						
						<ui:param name="compBean2Id" value="identityName" />
						<ui:param name="compBean2Lable" value="权限名称" />
						<ui:param name="compBean2Editable" value="false"/>
						
						<ui:define name="compBean2Content">
							<h:outputText id="#{compBean2Id}" value="#{rightViewBean.identityName}" />
						</ui:define>
						
					</ui:decorate>
					
					<!-- 第二行 -->
					<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
					
						<ui:param name="compBean1Id" value="parentName" />
						<ui:param name="compBean1Lable" value="父分类" />
						<ui:param name="compBean1Editable" value="false"/>
						
						<ui:define name="compBean1Content">
							<h:outputText id="#{compBean1Id}" value="#{rightViewBean.parent.identityName}" />
						</ui:define>
						
					</ui:decorate>
					
					<!-- 第三行 -->
					<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
					
						<ui:param name="compType" value="single" />
						<ui:param name="compBean1Id" value="description" />
						<ui:param name="compBean1Lable" value="权限详细信息" />
						<ui:param name="compBean1Editable" value="false"/>
						
						<ui:define name="compBean1Content">
							<h:outputText id="#{compBean1Id}" value="#{rightViewBean.description}" />
						</ui:define>
						
					</ui:decorate>
				
				</ui:decorate>
			
			</ui:define>
			
		</ui:decorate>
			
	</ui:define>
</ui:composition>
